<!-- 添加 -->
<link rel="stylesheet" type="text/css" href="__STYLE__/common.css" />

<div class="pageContent">
    <form method="post" enctype="multipart/form-data" action="__URL__/create/opttype/{$opttype}" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone)" >
        <div class="pageFormContent" layoutH="68">
            <div class="unit">
                <label>标　　题：</label>
                <input type="text" name="title" value=""  class="required" />
            </div>
			<if condition="$opttype neq '17'">
            <div class="unit">
                <label>网站标题:</label>
                <input type="text" name="web_title" value="" class="required" />
            </div>
            <div class="unit">
                <label>网站关键字:</label>
                <input type="text" name="web_keywords" value=""  class="required" />
            </div>
            <div class="unit">
                <label>网站描述:</label>
                <input type="text" name="web_description" value=""  class="required" />
            </div>
			</if>
			<div class="unit">
                <label>类　　别：</label>
                <select name="group_id" >
					<if condition="$opttype neq '17'">
                    <option value="15" <if condition="$opttype eq '15'">  selected = "selected" </if> >集团新闻</option>
					<option value="16" <if condition="$opttype eq '16'">  selected = "selected" </if> >视频中心</option>
					</if>
					<option value="17" <if condition="$opttype eq '17'">  selected = "selected" </if> >腾铭内刊</option>
                </select>
            </div> 
			<if condition="$opttype neq '17'">
            <div class="unit">
                <label><span style='color:red'>*</span>&nbsp;展示图片：</label>
                <input type="hidden" name="picture" value="" />
                <input type="file" name="uploadify" id="picture" class="uploadify required"/>
                <div class="picture oneImage"></div>
            </div>
            <div class="unit">
                <label>简介：</label>
				<textarea name="intro" style="width:400px;height:100px"></textarea>
            </div>
			</if>			
            <div class="unit">
                <label>排　　序：</label>
                <input type="text" name="sort" value="0"/>
            </div>
			
            <div class="unit">
				<if condition="$opttype eq '15' || $opttype eq '18' ">
					<label><span style='color:red'>*</span>&nbsp;内	容：</label>
				<elseif condition="$opttype eq '16'"/>
					<label><span style='color:red'>*</span>上传视频<br/>（<span style='color:red'>只能上传视频，不能输入其他！</span>）：</label>
				<else/>
					<label><span style='color:red'>*</span>上传文档<br/>（<span style='color:red'>只能上传文档，不能输入其他！</span>）：</label>
				</if>
                <textarea name="content" class="kindeditor" tools="full" style="height:200px;width:80%;" class="required" ></textarea>
            </div>
			
			<if condition="$opttype neq '17'">
			<div class="unit showMoney">
                <label>是否推荐：</label>
                <input name="recommend" type="radio" value="0" />推荐
                <input name="recommend" checked="true"  type="radio" value="1" />不推荐
            </div>
			</if>
            <div class="unit showMoney">
                <label>前台状态：</label>
                <input name="status" checked="true" type="radio" value="0" />显示
                <input name="status" type="radio" value="1" />不显示
            </div>
        </div>
        <div class="formBar">
            <ul>                     <li>
                        <div class="buttonSave">
                            <div class="buttonSaveContent">
                                <button type="submit">
                            		<i class="iconfont">&#xe644;</i>保存
                                </button>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="buttonCancel">
                            <div class="buttonCancelContent">
                                <button type="button" class="close">
                                	<i class="iconfont">&#xe640;</i>取消
                                </button>
                            </div>
                        </div>
                    </li>
            </ul>
        </div>
    </form>
</div>
<script type="text/javascript">
    //获取权限子级信息form
    $('.unit').on("change",".selectAuth",function(){
        var $this =  $(this);
        var pid = $this.val();
        $.post('__URL__/getNextList',{pid : pid},function(data){
            if(data !='0'){
                var str = '<select name="auth[]" style="width:150px;" class="selectAuth" ><option value="">请选择</option>';
                $.each(data,function(i,v){
                    str +='<option value="'+v.id+'">'+v.title+'</option>';
                })
                str +='</select>';
                $this.nextAll('.selectAuth').remove();
                $this.after(str);
            }
        },'json');
    })
</script>